import BaseMediator from "../../libs/lightMVC/core/base/BaseMediator";
import PostmodernismView from "./TopView";
import PlayerModel, { AreaInfo, ShowroomType, ShowroomInfo, Player } from "../model/PlayerModel";
import HttpUtils from "../../libs/lightMVC/util/HttpUtils";
import API from "../API";
import TopView from "./TopView";
import Notification from "../Notification";
 
export default class TopMediator extends BaseMediator {
 
    public view: TopView;
 
 
 
    public init(data?: any): void {
 
        this.registerNoti(Notification.MUSIC_PLAYING, ()=>{
            
            this.view.playMusic();
 
        }, this);
 
        this.registerNoti(Notification.MUSIC_PAUSE, ()=>{
            
            this.view.pauseMusic();
 
        }, this);
       
       
       
    }
    public viewDidAppear(): void {

        //this.view.init();
    }

  

    

   

    public destroy(): void {

    }
}